/**
 * Created by zhulingxiao on 2017/6/6.
 */
import React from 'react';

import { Table } from 'antd';

export default class myTable extends React.Component{

  handleChange = (pagination, filters, sorter) => {

    console.log('Various parameters', pagination, filters, sorter);

  }

  render() {

    let { columns, data, pagination, loading } = this.props;

    return (

      <div>

        <Table columns={columns} dataSource={data} onChange={this.handleChange} pagination={pagination} loading={loading}/>

      </div>
    );
  }

}
